how to print react components